]> dgit.raspbian.org Git - gnome-shell.git/commit
overview: Use monotonic time to check for consecutive activations
authorFlorian Müllner <fmuellner@gnome.org>
Mon, 15 Jan 2018 14:36:44 +0000 (15:36 +0100)
committerFlorian Müllner <florian.muellner@gmail.com>
Fri, 13 Apr 2018 09:13:45 +0000 (09:13 +0000)
commite00f22ebe642d07bd1ab003f9b68105d8da25ed8
treeddf71b88befa0e8ea55e3dc4343b5dc039673c98
parent13390543b026c83274874e259cda0ad470c7e974
overview: Use monotonic time to check for consecutive activations

We don't toggle the overview if the request happens too close to the
last activation, to filter out double-clicks or activation by both
the hot corner and a click. However as the check is based on the
real time, the check breaks if the system clock moves backwards and
the last activations appears to be in the future. Fix this by using
monotonic time which is guaranteed to only move forward.

https://bugzilla.gnome.org/show_bug.cgi?id=763886
js/ui/overview.js